package com.csair.seam.infrastructure.ehome;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author: wurunbin
 * @Date: 2020/3/5 14:58
 * @Description:
 **/
@Getter
@Setter
@ApiModel
public class EhomeParamData {

    @ApiModelProperty("登录账号")
    private String loginAccount;

    @ApiModelProperty("登录设备编号")
    private String device;

    @ApiModelProperty("登录ssoToken")
    private String token;

    public EhomeParamData(String loginAccount, String device, String token){
        this.loginAccount = loginAccount;
        this.device = device;
        this.token = token;
    }

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("{\"loginAccount\":\""+loginAccount+"\",");
        sb.append("\"device\":\""+device+"\",");
        sb.append("\"token\":\""+token+"\"");
        sb.append("}");
        return sb.toString();
    }
}
